/*
 * @Author: Sian Li lisian_magic@163.com
 * @Date: 2024-07-01 16:06:22
 * @LastEditors: Sian Li lisian_magic@163.com
 * @LastEditTime: 2024-07-04 14:37:37
 * @FilePath: /hudar/src/hudar/src/RadarClass/Camera/Camera.h
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置
 * 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#ifndef HK_CAMERA_H__
#define HK_CAMERA_H__
#include "MvCameraControl.h"
#include "spdlog/spdlog.h"
#include <opencv2/opencv.hpp>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
class HKCam {
  public:
    HKCam();
    ~HKCam();
    cv::Mat getFrame();

  private:
    std::shared_ptr<spdlog::logger> logger = spdlog::get("RadarLogger");
    int nRet;
    MVCC_INTVALUE stParam;
    MV_FRAME_OUT_INFO_EX stImageInfo = {0};
    unsigned char *pData;
    void *handle = NULL;
    unsigned int nDataSize;
};

#endif